<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	
<%@page import="com.lovo.bbs.vo.*,com.lovo.bbs.bo.*,java.util.*"%>

<%
    //取得网站杂项信息
    ForumStatVo data = (ForumStatVo)application.getAttribute("forumInfo");
    String asmsg = request.getParameter("msg");
    String msg=null;
    if(asmsg!=null){
       msg = "公告已更改...";
    }
%>
<html>
	<head>
		<link href="../../../css/admin.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../../../js/wbs_admin.js"></script>
		<script type="text/javascript" src="../js/wbs_admin.js"></script>
		<script type="text/javascript">
		  function validate(){
       	   var msg=document.getElementById("errormsg");
           if(trim(document.frmMain.content.value)==""){
           		msg.innerHTML="<br><font color='red'>提示:请填写公告内容</font>"
           		document.frmMain.content.focus();
           		return false;
           }
        	return true;       
       	 }
		</script>
	</head>
	<body>
		<form name="frmMain" action="SiteUpdateServlet" method="POST" onSubmit="return validate();">
			<table class="navigation" style="width:98%" align="center">
				<tr>
					<td>
						当前位置: 公告管理
					</td>
				</tr>
			</table>
			<table style="width:90%;" align="center">
				<div class="DialogBody">
					<div class="formArea">
						<div id="errormsg" class="DialogMsg"></div>
						<p>							
							公告内容:(发布的公告具体内容)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%if(msg!=null) {%><font color="red"><%=msg %></font><%} %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<br>
							<textarea name="content" wrap=soft rows=8 cols=55><%=data.getSiteNotice()%></textarea>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<p>
							<input type="submit" name="submit" class="button" value=" 确定 " onclick="validate();">
							<input type="button" name="button" class="button" value=" 取消 " onclick="preReturn();">
						<p>
							<br>
					</div>
				</div>
			</table>
	</body>
</html>
